<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', 'Activity@index');

//Activity
Route::group(['prefix'=>'activity'], function(){
    Route::get('/', 'Activity@lists');
    Route::get('/{id}/register', 'Activity@register');
    Route::post('/{id}/register', 'Activity@register');
    Route::post('/{id}/check', 'Activity@check');
    Route::post('/{id}/verify', 'Activity@verify');
    Route::get('/{id}', 'Activity@details');
});

Route::group(['prefix'=>'common'], function(){
    Route::get('/register', 'User@register');
    Route::post('/register', 'User@register');
});


/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

Route::group(['middleware' => ['web']], function () {
    //
});

